public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		URLInfo info1 = new URLInfo("http", "localhost", "8888", "AppName", "hogeServlet");
		URLInfo info2 = new URLInfo("http", "localhost", "", "", "hogeServlet");
		URLInfo info3 = new URLInfo("http", "localhost", null, null, "hogeServlet");
		URLInfo info4 = new URLInfo("http", "localhost", null, null, null);

		System.out.println(info1.toUrlString());
		System.out.println(info2.toUrlString());
		System.out.println(info3.toUrlString());
		System.out.println(info4.toUrlString());
	}
}
